<?php
namespace app\merchant\controller\setting;
use app\common\controller\BaseController;
use app\common\service\setting\SettingAppealTypeService;
use app\common\validate\setting\SettingAppealTypeValidate;
use hg\apidoc\annotation as Apidoc;
/**
 * @Apidoc\Title("申诉类型")
 * @Apidoc\Group("setting")
 * @Apidoc\Sort("250")
 */
class SettingAppealType extends BaseController
{
    /**
     * @Apidoc\Title("选择申诉类型")
     * @Apidoc\Query(ref="sortQuery")
     * @Apidoc\Query(ref="searchQuery")
     * @Apidoc\Query(ref="dateQuery")
     * @Apidoc\Returned(ref="app\common\model\setting\SettingAppealTypeModel", field="id,title")
     */
    public function select()
    {
        $where = $this->buildWhere([
            'is_terminal',
        ]);
        $where = $this->where(where_delete($where));
        $data = SettingAppealTypeService::list($where,0,0, $this->order(),'id as value,title as label,is_disable as disable');
        return success($data);
    }
}
